package Thread.Old.Runable2;

public class RunableImpl2 implements Runnable {
    private int num = 100;
    @Override
    public void run() {
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        while(num>0)
        {
            System.out.println(Thread.currentThread().getName()+"-->"+num);
            num--;
            //用于卖票
        }
    }
}
